<?php /* Smarty version Smarty-3.1.8, created on 2016-06-24 15:19:40
         compiled from "admin:pm/addpm.html" */ ?>
<?php /*%%SmartyHeaderCode:4210576cd675eda363-90080394%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '66f3445193461c51752d32c726984e3149fddac3' => 
    array (
      0 => 'admin:pm/addpm.html',
      1 => 1466752770,
      2 => 'admin',
    ),
  ),
  'nocache_hash' => '4210576cd675eda363-90080394',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_576cd675f28572_44626191',
  'variables' => 
  array (
    'pm_type' => 0,
    'key' => 0,
    'pm' => 0,
    'detail' => 0,
    'zxpm' => 0,
    'zv' => 0,
    'pm_pro' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_576cd675f28572_44626191')) {function content_576cd675f28572_44626191($_smarty_tpl) {?><?php if (!is_callable('smarty_function_widget')) include 'E:\\xampp\\htdocs\\zhejiangzhuangshi\\system\\plugins/smarty\\function.widget.php';
?><?php echo $_smarty_tpl->getSubTemplate ("admin:common/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="page-title">
    <table width="100%" align="center" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td width="30" align="right"><img src="http://hf.v6.jhcms.cn/admin/images/main-h5-ico.gif" alt=""></td>
        <th>添加项目</th>
        <td align="right"><a href="?pm/index-index.html" priv="hidden" class="button">项目列表</a></td>
        <td width="15"></td>
      </tr>
    </tbody></table>
</div>
<div class="page-data">
<form action="?pm/index-addpm.html" mini-form="designer-form" method="post" enctype="multipart/form-data">
<input type="hidden" name="account[from]" value="designer">
<table width="100%" border="0" cellspacing="0" class="table-data form">
    <tbody>
    <tr>
        <th><span class="red">*</span>公司名称：</th>
        <td>
           <input type="hidden" name="data[company_id]" value="" class="input w-400" id="pm_company_id">
            <input type="text"  name="data[company]" class="input w-400" id="pm_company_name" readonly="true" />
            <a href="?company/company-dialog.html" mini-select="#pm_company_id,#pm_company_name/N/选择装修公司" class="button">选择公司</a>
        </td>
    </tr>
    <tr>
        <th><span class="red">*</span>工地名称：</th>
        <td>
            <input type="text" name="data[title]" value="" class="input w-400">
        </td>
    </tr>
    <tr>
        <th><span class="red">*</span>工程类型：</th>
        <td>
            <select class="w-200" name="data[type_id]">
                <?php  $_smarty_tpl->tpl_vars['pm'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pm']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['pm_type']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['pm']->key => $_smarty_tpl->tpl_vars['pm']->value){
$_smarty_tpl->tpl_vars['pm']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['pm']->key;
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['pm']->value;?>
</option>
                <?php } ?>
            </select>
        </td>
    </tr>
    <tr>
        <th><span class="red">*</span>城市选择：</th>
        <td>
           <?php echo smarty_function_widget(array('id'=>"data/region",'city_id'=>$_smarty_tpl->tpl_vars['detail']->value['city_id']),$_smarty_tpl);?>

        </td>
    </tr>
    <tr>
        <th>施工地址：</th>
        <td><input type="text" name="data[addr]" value="" class="input w-400"></td></tr>
    <tr>
    <tr>
        <th>小区名称：</th>
        <td><input type="text" name="data[home_name]" value="" class="input w-300"></td>
    </tr>
    <tr>
        <th>施工面积：</th>
        <td>
            <input type="text" name="data[house_mj]" value="0" class="input w-300"><span> ㎡</span>
        </td>
    </tr>    
    <tr>
        <th>装修报价：</th>
        <td>
            <input type="text" name="data[price]" value="0" class="input w-300"><span> RMB</span>
        </td>
    </tr> 
    <tr>
        <th>项目监理：</th>
        <td>
            <select class="w-200" name="data[zxpm_id]">
                <?php  $_smarty_tpl->tpl_vars['zv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['zv']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['zxpm']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['zv']->key => $_smarty_tpl->tpl_vars['zv']->value){
$_smarty_tpl->tpl_vars['zv']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['zv']->value['supervist_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['zv']->value['name'];?>
</option>
                <?php } ?>
            </select>
        </td>
    </tr> 
    <tr>
        <th>业主姓名：</th>
        <td>
            <input type="hidden" name="data[custom_id]" id="select_member_uid_id" />
            <input type="text" name="data[custom]" id="select_member_uid_name" class="input w-300" readonly="true" />
            <a href="?member/member-dialog-member.html" mini-select="#select_member_uid_id,#select_member_uid_name/N/选择用户" title="选择用户" class="button">选择用户</a>
        </td>
    </tr>
    <tr>
        <th>装修进度：</th>
        <td>
            <input id="input_pm_pro" type="text" name="data[pm_pro]" onchange="setRadio()" value="" class="input w-300"><span> 每个阶段之间，用英文的逗号（,）隔开,无法修改</span>
        </td>
    </tr>
    <tr>
        <th>当前进度：</th>
        <td id="radio_pm_pro">
            <!--<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['pm_pro']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
                <label><input type='radio' name='data[status]' value='<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
' <?php if ($_smarty_tpl->tpl_vars['key']->value==1){?>checked='true'<?php }?>/><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</label>
            <?php } ?>-->
        </td>
    </tr>
    <tr>
        <th>开始时间：</th>
        <td>
            <input type="text" name="data[starttime]" value="<?php echo date('Y年m月d日 H:i:s',time());?>
" class="input w-300 Wdate" readonly="true" date='end_sign'>
        </td>
    </tr>
    <tr>
        <th>结束时间：</th>
        <td>
          <input type="text" name="data[endtime]" value="<?php echo date('Y年m月d日 H:i:s',time());?>
" class="input w-300 Wdate" readonly="true" date='end_sign'>
        </td>
    </tr>
    <tr><th></th>
        <td><input type="submit" class="bt-big" value="提交数据"></td>
    </tr>
   
</tbody></table>
</form>
</div>
<script>
    function setRadio(){
        $('#radio_pm_pro').html('');
        var __arr = $('#input_pm_pro').val().split(',');
        for(var i in __arr){
            $('#radio_pm_pro').append("<label><input type='radio' name='data[status]' value='"+i+"'/>"+__arr[i]+"</label>")
        }
        return 0;
    }
</script>
<?php echo $_smarty_tpl->getSubTemplate ("admin:common/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>